/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.systemManag.service;

import com.koron.workflow.common.bean.PageBean;
import com.koron.workflow.systemManag.bean.InterfacelogQueryBean;
import org.koron.ebs.mybatis.SessionFactory;
import org.swan.bean.MessageBean;

/**
 * 接口调用日志
 */
public interface InterfacelogService {
    /**
     * 根据条件查询 接口调用日志 列表
     * @param factory
     * @param appCode 应用编号
     * @param appName 应用名称
     * @param inParam 入参内容
     * @param page
     * @param pageSize
     * @return
     */
    PageBean queryForList(SessionFactory factory, String appCode, String appName, String inParam, Integer page, Integer pageSize);

    /**
     * 根据字典组编号查询接口调用日志
     * @param factory
     * @param id
     * @return
     */
    InterfacelogQueryBean queryForObject(SessionFactory factory, String id);

    /**
     * 删除2月前日志
     * @return
     */
    MessageBean deleteTwoMonthData(SessionFactory factory);
}
